<?php
	require "conn.php";
	header("Access-Control-Allow-Origin: *");
		$username=$_POST['name'];
		$pass=$_POST['passWord'];
	
	$pass=$pass;
	$query="select * from QQ where QQNumber='$username' and Password='$pass'";
	$result=mysql_query($query);
	
	
	if(mysql_fetch_array($result)){	
		setcookie('UserName',$username,time()+3600*24*7,'/');	
		echo 1;
	}else{		
		echo 0;
	}
	
?>

